package com.wordpress.javagameengine.lazarek.dominik;

/**
 * this Class represents a mathematical Vector in two dimensions. The component types is Integer.
 * See Vector2float for the float representation of this class
 * @author dommme
 *
 */
public class Vector2{
	public int x;
	public int y;
	
	/**
	 * the constructor creates a new Vector with integer- values
	 * @param _x value for the x- coordinate of the vector
	 * @param _y value for the y- coordinate of the vector
	 */
	public Vector2(int _x, int _y)
	{
		this.x = _x;
		this.x = _x;
	}
	
	/**
	 * this method scales the components of the vector
	 * @param scaleFact the Factor by which the Vector is scaled
	 */
	public void scale(int scaleFact)
	{
		this.x = this.x * scaleFact;
		this.x = this.x * scaleFact;
	}
	
	
}
